package com.example.wm.service.impls;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;

import com.example.wm.entity.EmployeeInformationFormTow;
import com.example.wm.mapper.EmployeeInformationFormTowMapper;
import com.example.wm.service.EmployeeInformationFormTowService;
import com.example.wm.utils.ExcelReader;
import org.springframework.stereotype.Service;

import java.io.InputStream;
import java.util.ArrayList;
import java.util.List;
import java.util.Map;

@Service
public class EmployeeInformationFormTowImpl extends
        ServiceImpl<EmployeeInformationFormTowMapper, EmployeeInformationFormTow>
          implements EmployeeInformationFormTowService {

    public List<Map> getListByExcel(InputStream is, String fileName) {
         EmployeeInformationFormTow c=new EmployeeInformationFormTow();

        try{
            List<Map> studentList = new ExcelReader(c).AnalysisExcel(is, fileName);
            return studentList;
        }catch (Exception e){
            e.printStackTrace();
        }
        return new ArrayList<>();
    }
}
